
let View = require("View")

class NetbusyView extends View
{
    open()
    {
        this.mRoot.zIndex = 1000
    
        let node = this.widget('1')
        if (node)
        {
            let a = 0

            this.startUpdate(
                (dt)=>{

                    a -= dt * 240
                    if (a > 360)
                    {
                        a -= 360
                    }

                    node.angle = a
                }
            )
        }
    }
}

export default NetbusyView
